﻿using SqlSugar;
using System;

namespace Model
{
    /// <summary>
    /// user_account 表实体类
    /// </summary>
    [SugarTable("user_account")]
    public class UserAccount
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public long UserId { get; set; }

        /// <summary>
        /// 帐户可用余额
        /// </summary>
        [SugarColumn(ColumnName = "amount")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 冻结金额
        /// </summary>
        [SugarColumn(ColumnName = "freeze_amount")]
        public decimal FreezeAmount { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(1:已删除，0:未删除)
        /// </summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public byte IsDeleted { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        [SugarColumn(ColumnName = "version")]
        public int Version { get; set; }

    }
}
